<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Editing Attrvalue</title>

    
    <link href="{views_url}css/styles.css" rel="stylesheet" type="text/css"/>
    
  </head>
  <body>
  <div id="page_margins">
    <div id="page">

      {include file="header.html"}

    <div id="main">

      
      <form action="" method="post" enctype="multipart/form-data">
        <input name="posting" type="hidden" value="1" />
        <input name="id" type="hidden" value="{$attrvalue->id}" />
                  
          
                    <div class="edit-block">
            <label for="value">Attribute Value :</label>
            <input name="value" value="{$attrvalue->value}" type="text">
          </div>
                    
                    
                  
                  <div class="edit-block">
            <label for="attribute">Attribute: </label>
            {html_options name=attribute options=$attributes selected=$attributes_selected}
          </div>
                  <div class="edit-block">
            <label for="recipient">Recipient: </label>
            {html_options name=recipient options=$recipients selected=$recipients_selected}
          </div>
                
                
        <div class="clearfix">
          <input type="submit" class="button button-save" name="button_save" value="Save">
          
          {if {$attrvalue->id}}
          <a onclick="if (! show_confirm()) return false;" href="{controllers_url}attrvalues/delete/{$attrvalue->id}/">Delete</a>
          <script type="text/javascript">
            function show_confirm() {
              return confirm("Are you sure you want to delete this content?");
            }
          </script>
          {/if}
          
        </div>
      </form>
    </div>
    <!-- main -->

    {include file="footer.html"}

    </div>
  <!-- page -->
  </div>
  <!-- page_margins -->
  </body>
</html>